FROM kylin-server-v10-sp3-general-release-2206-loongarch64:b17

LABEL maintainer="BES"

ARG WEBSERVER_TAR_FILE='./BES-WEBSERVER-STANDALONE-3.1.0.1106-KYLIN10-LOONGSON-64.tar.gz'

WORKDIR /home/bes/BWS

ENV JAVA_HOME  /usr/java/loongson8.1.10-jdk8u312b07-linux-loongarch64


ADD ${WEBSERVER_TAR_FILE} .
ADD ./application.yml ./conf
ADD ./run.sh .
ADD OpenJDK_jdk-8u232-linux-aarch64.tar.gz  /usr/java
RUN groupadd nobody && usermod -a -G nobody nobody;chmod +x ./run.sh

EXPOSE 5900

CMD ["/home/bes/BWS/run.sh"]
